home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!escan.demon.co.uk
- From: Bill Birrell <bill@escan.demon.co.uk>
- Newsgroups: comp.lang.c
- Subject: C or C++ for a 14-year old?
- Date: Tue, 09 Jan 1996 06:08:00
- Message-ID: <821168884.AA00166@escan.demon.co.uk>
- Reply-To: bill@escan.demon.co.uk
- X-NNTP-Posting-Host: escan.demon.co.uk
- X-Mail2News-Path: escan.demon.co.uk
-
- > Personally, I think it's just as easy for a beginner
- > to understand
-
- > i = 1
- > while i <= 10
- > print "your name here"
- > done
-
- Except that it needs to be:-
-
- while (i++ <= 10).
-
- Unless the control variable is incremented or
- decremented or otherwise changed so that it can eventually become 10 or more,
- such a loop cannot terminate. A 14-year old can be expected to realise this.
-
- ho-hum.
-
- --
- Regards,
- Bill Birrell.
- internet: bill@escan.demon.co.uk
-